package com.mall.controller;

import com.mall.service.UserAddrService;
import com.mall.vo.ResultVO;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("/useraddr")
@Api(value = "提供收获地址相关接口",tags = "收获地址管理")
public class UserAddrController {
    @Autowired
    private UserAddrService userAddrService;

    @GetMapping("list")
    public ResultVO selectAddrList(String userId, @RequestHeader("token") String token){
        return userAddrService.listAddrsByUid(userId);
    }
}
